package com.bbx.api.sdk;

import com.bbx.api.util.LogUtils;

/**
 * @Description
 * @Path com.bbx.api.sdk.CommView.java
 * @Author 年向
 * @Date 2015年8月13日 下午4:33:33
 * @Company 蓝海（福建）信息技术有限公司
 */
public class Config {
	public static Config ins;
	/**
	 * 0.BBX开发
	 * 1.BBX测试
	 * 2.BBX正式
	 * 3.Official开发
	 * 4.Official测试
	 * 5.Official正式
	 * 6.Official正式2
	 */
	public int Env=1;
	
	public static Config getInstance() {
		if (ins == null) {
			ins = new Config();
		}
		return ins;
	}
	public  String BASE_URL0="";
	public  String BASE_URL="";
	public  String BASE2_URL="";
	public  String BASE3_URL="";
	public  String BASE4_URL="";
	public  String BASE5_URL="";
	public  String SCAN_ORDER_URL="";
	public  String SCAN_ATTENTION_URL="";
	public  String IP="";
	public  int PORT=0;
	public  String USER_HELP_API="";
	public  String ACCOUNT_API="";
	public  String APP_PLATFORM="";
	public  String kEY ="";
	/**个人账户中心*/
	public String BASE_ACCOUNT_URL="";

	public Config() {
		switch(Env){
		//BBX开发环境
		case 0:
		  BASE_URL = "http://182.254.242.145:8080/api/";
		  IP = "115.159.89.35";
		  PORT = 43000;
		  ACCOUNT_API = "http://devaccount.bbxhc.com:10880?uid=";
		  APP_PLATFORM="bbx";
		  // APP_PLATFORM="bbx_port";
		  LogUtils.isDebug=true;
		  BASE_ACCOUNT_URL = "http://192.168.9.233:6060/bbxpaymanage-web/";
		  SCAN_ATTENTION_URL="http://weixin.qq.com/r/0UxTS0nEJBRbrQ0o9xnD";
		                       
			break;
		//BBX测试环境
		case 1:
		  BASE_URL = "http://115.159.89.35:8080/api/";
		  BASE_URL0 = "http://115.159.22.209:6060/";
		  IP = "115.159.89.35";
		  PORT = 23000;
		  ACCOUNT_API = "http://testaccount.bbxhc.com:10890/uid=";
		  APP_PLATFORM="bbx";
		  // APP_PLATFORM="bbx_port";
		  BASE_ACCOUNT_URL = "http://115.159.22.209:6060/bbxpaymanage-web/";
		  kEY="1234567890";
		  USER_HELP_API="http://115.159.89.35:10890/usagevetical/index";
		  LogUtils.isDebug=true;
		  SCAN_ATTENTION_URL="http://weixin.qq.com/r/0UxTS0nEJBRbrQ0o9xnD";
		  SCAN_ORDER_URL ="http://115.159.89.35:8080/api/direct_order/index?";
			break;
		//BBX正式环境
		case 2:
		  BASE_URL="http://api.bbxhc.com:80/api/";
		  IP="dispatch.bbxhc.com";
		  PORT = 13000; 
		  ACCOUNT_API = "http://onlineaccount.bbxhc.com:10880?uid=";
		  APP_PLATFORM="bbx";
		  // APP_PLATFORM="bbx_port";
		  BASE_ACCOUNT_URL = "http://p.bbxhc.com:80/bbxpaymanage-web/";
		  kEY="bbxpay20151230wzxbbxpay334422115";
		  USER_HELP_API="http://onlineaccount.bbxhc.com:10880/usagevetical/index";
		  LogUtils.isDebug=true;
		  SCAN_ATTENTION_URL="http://weixin.qq.com/r/0UxTS0nEJBRbrQ0o9xnD";
		  SCAN_ORDER_URL = "http://direct.bbxhc.com/api/direct_order/index?";
			break;
		//Official开发环境
		case 3:
		  BASE_URL = "http://182.254.242.145:12580/";
		  BASE2_URL = "http://182.254.242.145:18203/";
		  BASE3_URL = "http://115.159.89.35:45678/";
		  BASE4_URL = "http://182.254.242.145:23333/";
		  BASE5_URL = "http://182.254.242.145:8080/api/";
		  IP = "115.159.89.35";
		  PORT = 43000;
		  ACCOUNT_API = "http://devaccount.bbxhc.com:10880?uid=";
		  APP_PLATFORM="official";
		  LogUtils.isDebug=true;
			break;
		//Official测试环境
		case 4:
		  BASE_URL = "http://bc.bbxpc.cn:12581/";
		  BASE2_URL = "http://tcapi.bbxpc.cn:18204/";
		  BASE3_URL = "http://orgapi.bbxpc.cn:45678/";
		  BASE4_URL = "http://182.254.242.145:23334/";
		  BASE5_URL = "http://115.159.89.35:8080/api/";
		  IP = "115.159.89.35";
		  PORT = 23000;
		  ACCOUNT_API = "http://devaccount.bbxhc.com:10880?uid=";
		  APP_PLATFORM="official";
		  LogUtils.isDebug=true;
			break;
		//Official正式环境
		case 5:
		  BASE_URL = "http://basecenter.bbxpc.cn:12580/";
		  BASE2_URL = "http://tc.bbxpc.cn:18203/";
		  BASE3_URL = "http://orgapi-pro.bbxpc.cn:45678/";
		  BASE4_URL = "http://midapi.bbxpc.cn:23333/";
		  BASE5_URL = "http://api.bbxhc.com:80/api/";
		  IP="dispatch.bbxhc.com";
		  PORT = 13000; 
		  ACCOUNT_API = "http://devaccount.bbxhc.com:10880?uid=";
		  APP_PLATFORM="official";
		  LogUtils.isDebug=true;
			break;
		//Official2正式环境
		case 6:
		  BASE_URL = "http://218.5.173.103:12580/";
		  BASE2_URL = "http://218.5.173.103:18203/";
		  BASE3_URL = "http://218.5.173.103:45678/";
		  BASE4_URL = "http://218.5.173.103:23333/";
		  BASE5_URL = "http://api.bbxhc.com:80/api/";
		  IP="218.5.173.103";
	      PORT = 13000; 
		  ACCOUNT_API = "http://devaccount.bbxhc.com:10880?uid=";
		  APP_PLATFORM="official";
		  LogUtils.isDebug=true;
		   break;			
		}
		
	}
	public static String APP_STYPE="android_passenger";
//	public static String APP_STYPE="android_drive";
//	public static String APP_STYPE="android_drive_mobile";
//	public static String APP_STYPE="android_drive_mobile_port";
	
	static String DEFAULT = "test0001";
	String VER = "1.0";
	
	public  int APP_ACCOUNT_PASSANGER = 0;//登录身份：乘客
	public  int APP_ACCOUNT_DRIVER = 1;//登录身份：司机
	
	public int APP_PLATFROM_DRIVER = 2;  //横板司机端更新参数
	public int APP_PLATFROM_PASSANGER = 0; //乘客端更新参数
	public int APP_PLATFROM_DRIVER_PORT=3; //竖版司机端更新参数
	public int APP_PLATFROM_OFFICIAL_PASSANGER=1001; //公务车乘客端更新参数
	public int APP_PLATFROM_OFFICIAL_DRIVER=1002; //公务车司机端更新参数
	
	public int SERVICE_TYPE_PULL = 10;
	public int SERVICE_TYPE_UP_GPS = 30;
	
	/** 上传log的最大行数 */
	public static int UP_LOG_MAX_LINE = 100;
	
	/**日志打印的开启和关闭，true:表示开启，flase:表示关闭日志*/
	public boolean  DEBUG_FLAG=true;
    public static String CITY="";
    /**0帮邦行
     * 1公务车
     * 2天山行
     * */
    public static int APP;
}
